﻿using System;

namespace IfElseStatement
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write("x = ");
            int x = int.Parse(Console.ReadLine());

            if (x < 0)
            {
                Console.WriteLine("x is negative");
            }

            if (x >= 0) // !(x < 0)
            {
                Console.WriteLine("x is not negative");
            }

            // ===============================================

            if (x < 0)
            {
                Console.WriteLine("x is negative");
            }
            else // !(x < 0)   x >= 0    x > 0 || x == 0
            {
                Console.WriteLine("x is not negative");
            }

            Console.ReadKey();
        }
    }
}
